package com.desksoft.ecommerce.vo.mall;

import java.util.HashMap;
import java.util.Map;

import com.desksoft.ecommerce.entity.mall.dto.Deliverplandetail;

public class DeliverplandetailVO  extends Deliverplandetail{

	/**
	 * 
	 */
	private static final long serialVersionUID = -5107929910883826435L;
    
	private String endDate;
	private String starts;
	private String ends;
	private String dayss;
	private int intstart;
	private int intend;
	private String deliverPlanComment;
	private int siteID;
	private long longStart;
	private long longEnd;
	public long getLongStart() {
		return longStart;
	}
	public void setLongStart(long longStart) {
		this.longStart = longStart;
	}
	public long getLongEnd() {
		return longEnd;
	}
	public void setLongEnd(long longEnd) {
		this.longEnd = longEnd;
	}
	public int getSiteID() {
		return siteID;
	}
	public void setSiteID(int siteID) {
		this.siteID = siteID;
	}
	public String getDeliverPlanComment() {
		return deliverPlanComment;
	}
	public void setDeliverPlanComment(String deliverPlanComment) {
		this.deliverPlanComment = deliverPlanComment;
	}
	public int getIntstart() {
		return intstart;
	}
	public void setIntstart(int intstart) {
		this.intstart = intstart;
	}
	public int getIntend() {
		return intend;
	}
	public void setIntend(int intend) {
		this.intend = intend;
	}
	public String getDayss() {
		return dayss;
	}
	public void setDayss(String dayss) {
		if(dayss != null &&!dayss.equals("")&&!dayss.equals(" ")){
		Map<String, String> map = new HashMap<String, String>();
		map.put("1", "一   ");
		map.put("2", "二   ");
		map.put("3", "三   ");
		map.put("4", "四   ");
		map.put("5", "五   ");
		map.put("6", "六   ");
		map.put("7", "日   ");
		String a = "";
		String[] s = dayss.split(""); 
		for (int i = 0; i < s.length; i++) {
			if(i!=0){
			String c = s[i];
			if(i==1){
			a+="周"+map.get(c);
			}else{
			a+=",周"+map.get(c);	
			}
			}
		}
		this.dayss = a;
		}else{
			this.dayss = dayss;
		}
	}
	public String getStarts() {
		return starts;
	}
	public void setStarts(String starts) {
		this.starts = starts.substring(0,5);
	}
	public String getEnds() {
		return ends;
	}
	public void setEnds(String ends) {
		
		this.ends = ends.substring(0,5);
	}
	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}
	public String getEndDate() {
		return endDate;
	}
}
